<template>
    <div class="content">
        <div class="top">
            <ul>
                <li>
                    <SelectIpt>
                        <p>名称</p>
                    </SelectIpt>
                </li>
                <li>
                    <SelectIpt>
                        <p>位置</p>
                    </SelectIpt>
                </li>
                <li>
                    <SelectIpt>
                        <p>出入类型</p>
                    </SelectIpt>
                </li>
                <li>
                    <p class="submit">提交时间</p>
                    <el-date-picker v-model="value" type="daterange" range-separator="至" start-placeholder="开始日期"
                        end-placeholder="结束日期">
                    </el-date-picker>
                </li>
            </ul>
            <div class="btn">
                <GreenBtn>查询</GreenBtn>
                <BlueBtn>新增</BlueBtn>
                <BlueBtn>批量删除</BlueBtn>
                <BlueBtn>批量下载</BlueBtn>
            </div>
        </div>
        <div class="table">
            <el-table :data="tableData" border style="width: 100%" @selection-change="handleSelectionChange">
                <el-table-column type="selection" width="55">
                </el-table-column>
                <el-table-column prop="date" label="日期" width="180">
                </el-table-column>
                <el-table-column prop="name" label="姓名" width="180">
                </el-table-column>
                <el-table-column prop="address" label="地址">
                </el-table-column>
            </el-table>
        </div>
    </div>
</template>

<script>
import SelectIpt from '@/components/SelectIpt.vue';
import TextIpt from '@/components/TextIpt.vue';
import BlueBtn from '@/components/BlueBtn.vue';
import GreenBtn from '@/components/GreenBtn.vue';
export default {
    components: {
        SelectIpt,
        TextIpt,
        BlueBtn,
        GreenBtn
    },
    data() {
        return {
            value: '',
            tableData: [{
                date: '2016-05-02',
                name: '王小虎',
                address: '上海市普陀区金沙江路 1518 弄'
            }, {
                date: '2016-05-04',
                name: '王小虎',
                address: '上海市普陀区金沙江路 1517 弄'
            }, {
                date: '2016-05-01',
                name: '王小虎',
                address: '上海市普陀区金沙江路 1519 弄'
            }, {
                date: '2016-05-03',
                name: '王小虎',
                address: '上海市普陀区金沙江路 1516 弄'
            }],
            multipleSelection: []
        }
    },
    methods:{
        handleSelectionChange(val) {
        this.multipleSelection = val;
      }
    }
}
</script>

<style scoped>
.submit {
    margin-right: 20px;
}

.top>>>.el-input__inner {
    height: 30px;
    line-height: 30px;
}

.top>>>.el-date-editor .el-range__icon {
    line-height: 25px;
}

.top>>>.el-date-editor .el-range-separator {
    padding: 0;
    line-height: 22px;
}

.top li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
</style>